$OpenBSD: patch-src_Makefile_in,v 1.5 2014/03/23 22:39:28 kili Exp $
--- src/Makefile.in.orig	Sun Jun 16 03:17:19 2013
+++ src/Makefile.in	Sun Nov  3 10:11:16 2013
@@ -2177,7 +2177,7 @@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 LDFLAGS = @LDFLAGS@
 LIBICONV = @LIBICONV@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@ -lpthread -lrt
+LIBS = @LIBS@ -lpthread
 LTLIBICONV = @LTLIBICONV@
 LTLIBOBJS = @LTLIBOBJS@
 MAINT = @MAINT@
@@ -2716,7 +2716,7 @@ main_SOURCES = $(PNG) $(Screens) $(DataStructures) $(F
 	$(StepMania) $(Arch) $(ActorsInGameplayAndMenus) \
 	$(ActorsInMenus) $(ActorsInGameplay) $(Rage) $(Actors) \
 	$(GlobalSingletons) $(am__append_24)
-main_LDADD = \
+main_LDADD = -rdynamic \
 		$(VIDEO_LIBS) \
 		$(AUDIO_LIBS) \
 		$(XLIBS) \
@@ -15047,7 +15047,7 @@ all: increment_version
 
 increment_version:
 	if test -e ver.cpp; then \
-		build=`sed -rs 's/.*version_num = ([[:digit:]]+);/\1/;q' ver.cpp`; \
+		build=`sed -r 's/.*version_num = ([[:digit:]]+);/\1/;q' ver.cpp`; \
 		build=`expr $$build + 1`; \
 	else \
 		build=0; \
